import request from '@/utils/request'

// 查询调度值班列表
export function listDispatchClasses(query) {
    return request({
        url: '/mine/dispatchClasses/list',
        method: 'get',
        params: query
    })
}

// 查询调度值班详细
export function getDispatchClasses(id) {
    return request({
        url: '/mine/dispatchClasses/' + id,
        method: 'get'
    })
}

// 新增调度值班
export function addDispatchClasses(data) {
    return request({
        url: '/mine/dispatchClasses',
        method: 'post',
        data: data
    })
}

// 修改调度值班
export function updateDispatchClasses(data) {
    return request({
        url: '/mine/dispatchClasses',
        method: 'put',
        data: data
    })
}

// 删除调度值班
export function delDispatchClasses(id) {
    return request({
        url: '/mine/dispatchClasses/' + id,
        method: 'delete'
    })
}
